package com.hsc.eduservice.client;

import com.hsc.commonutils.R;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * feign远程服务调用失败后，熔断机制启动，返回错误信息，记得客户端要加上注解
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {

    @Override
    public R removeAlyVideo(String videoId) {
        return R.error().message("删除视频出错了");
    }
    @Override
    public R deleteBatch(List videoIdList) {
        return R.error().message("删除视频出错了");
    }
}
